package net.wds.study.student.modal;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 分查询分装对象
 * Created by sidongliang on 2020/9/7.
 */
public class PageModal<T> implements Serializable{

    /**
     * 当前第几页
     */
    private int pageIndex = 0;

    /**
     * 总页数
     */
    private int totalPageNum = 0;

    /**
     * 总共多少条记录
     */
    private int total = 0;

    /**
     * 每页大小
     */
    private int pageSize = 10;

    /**
     * 结果数据集
     */
    private List<T> pageData = new ArrayList<T>();


    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getTotalPageNum() {
        return totalPageNum;
    }

    public void setTotalPageNum(int totalPageNum) {
        this.totalPageNum = totalPageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public List<T> getPageData() {
        return pageData;
    }

    public void setPageData(List<T> pageData) {
        this.pageData = pageData;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
